<?php

class Model_DeficienciaDAO extends ORM{
	
	/***************
	   DATABASE   
	***************/
	
	protected $_table_name  = 'Deficiencia';
	protected $_table_names_plural = FALSE;
	protected $_primary_key = 'idDeficiencia';
	protected $_primary_val = 'tipoDeDeficiencia';
	
	protected $_belongs_to = array('curriculo' => array('model' => 'CurriculoDB', 'foreign_key' => 'idCurriculo'));
	
	protected $_has_many = array('dificuldadedevidodeficienciaintelectual' => array('model' => 'DificuldadeDevidoDeficienciaIntelectualDAO', 'foreign_key' => 'deficiencia_Dificuldade'));
}

?>